package com.fun.controller;

import lombok.extern.slf4j.Slf4j;
import org.jasypt.util.text.BasicTextEncryptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class TestController {

    @Autowired
    private BasicTextEncryptor basicTextEncryptor;

    @Value("${long.user}")
    private String secret;

    @Value("${long.password}")
    private String password;

    @GetMapping("/test")
    public void test() {
        log.info(secret);
        log.info(password);
//        log.info(basicTextEncryptor.decrypt(secret));
    }
}
